package yzserver.sx4a.form;


import yzserver.sx4a.domain.DepartmentDomain;

/**
 * Created with IntelliJ IDEA.
 * User: andrew
 * Date: 14-8-15
 * Time: 上午10:27
 * To change this template use File | Settings | File Templates.
 */
public class Department {
    private String  departmentid;//部门id
    private String  departmentname;//部门名称
    private String  departmentparent;//父部门id
    private String  displayname;//部门全名
    private String  opuser;//操作人信息
    private String  enable;//状态（0是有效，1是失效）
    private String  startdate;//生效时间yyyy-MM-dd 如2010-03-08
    private String  enddate;//失效时间yyyy-MM-dd 如2010-03-08
    private String  updatedate;//更新时间yyyy-MM-dd HH:mm:ss，如2010-03-08

    private String deptStyle; //组织形态 1公司 2部门
    private String deptLevel;//组织级别	 	1 一级部门  2 二级部门  3 三级部门  4 四级部门
    private String deptDisplayorder;//显示顺序



    public Department() {

    }

    public Department(DepartmentDomain domain) {
        this.departmentid = domain.getDEPARTMENTID();
        this.departmentname = domain.getDEPARTMENTNAME();
        this.departmentparent = domain.getDEPARTMENTPARENT();
        this.displayname = domain.getDISPLAYNAME();
        this.opuser = domain.getOPUSER();
        this.startdate = domain.getSTARTDATE();
        this.enddate = domain.getENDDATE();
        this.updatedate = domain.getUPDATEDATE();
        this.enable = domain.getENABLE();

        this.deptStyle = domain.getDEPT_STYLE();
        this.deptLevel = domain.getDEPT_LEVEL();
        this.deptDisplayorder = domain.getDEPT_DISPLAYORDER();
    }

    public String getDepartmentid() {
        return departmentid;
    }

    public void setDepartmentid(String departmentid) {
        this.departmentid = departmentid;
    }

    public String getDepartmentname() {
        return departmentname;
    }

    public void setDepartmentname(String departmentname) {
        this.departmentname = departmentname;
    }

    public String getDepartmentparent() {
        return departmentparent;
    }

    public void setDepartmentparent(String departmentparent) {
        this.departmentparent = departmentparent;
    }

    public String getDisplayname() {
        return displayname;
    }

    public void setDisplayname(String displayname) {
        this.displayname = displayname;
    }

    public String getOpuser() {
        return opuser;
    }

    public void setOpuser(String opuser) {
        this.opuser = opuser;
    }

    public String getEnable() {
        return enable;
    }

    public void setEnable(String enable) {
        this.enable = enable;
    }

    public String getStartdate() {
        return startdate;
    }

    public void setStartdate(String startdate) {
        this.startdate = startdate;
    }

    public String getEnddate() {
        return enddate;
    }

    public void setEnddate(String enddate) {
        this.enddate = enddate;
    }

    public String getUpdatedate() {
        return updatedate;
    }

    public void setUpdatedate(String updatedate) {
        this.updatedate = updatedate;
    }

    public String getDeptStyle() {
        return deptStyle;
    }

    public void setDeptStyle(String deptStyle) {
        this.deptStyle = deptStyle;
    }

    public String getDeptLevel() {
        return deptLevel;
    }

    public void setDeptLevel(String deptLevel) {
        this.deptLevel = deptLevel;
    }

    public String getDeptDisplayorder() {
        return deptDisplayorder;
    }

    public void setDeptDisplayorder(String deptDisplayorder) {
        this.deptDisplayorder = deptDisplayorder;
    }
}
